﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EFFC.Net.Interface;
using EFFC.Net.Common;

namespace EFFC.Net.BatchBuilder.ExceptionProcess
{
    public class BatchExceptionProcess : IExceptionProcess
    {

        public void DoProcess(Exception ex)
        {
            GlobalCommon.Logger.WriteLog(LoggerLevel.ERROR, ex.Message + "\n" + ex.StackTrace);
        }


        public void DoProcess(Exception ex, string domaintype)
        {
            GlobalCommon.Logger.WriteLog(LoggerLevel.ERROR, ex.Message + "\n" + ex.StackTrace,domaintype);
        }
    }
}
